package org.qpcr.community.device.web.request;

import lombok.Data;
import org.hswebframework.web.exception.BusinessException;

import java.util.List;

@Data
public class GetFluorescenceCalibrationRequest {
    private String deviceId;
    private List<String> cloudIds;
    private List<String> localIds;

    /**
     * 判断云端数据和本地数据加起来必须等于10
     */
    public void validate() {
        if (cloudIds.size() + localIds.size() != 10) {
            throw new BusinessException("数据数量必须是10条");
        }
    }
}
